package classifier;

import java.awt.BorderLayout;
import javax.swing.*;

import javax.swing.JFrame;

public class ClassifierMVC {

	public ClassifierMVC(){}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String[] featurenames = new String[]{"Turbo","EnginPower","SportBumper","SportRing","CruisControll",
				"ABS","AC","Metalic"};
		FeatureType ft = new FeatureType("yn", new String[]{"0", "1"});
		String filepath = "C:\\Users\\Malko\\Downloads\\TrainingSet.txt";
		DTFile dt = new DTFile(filepath, featurenames);
		DecisionTree decisiontree = dt.buildTree();
		ClassifierController CC = new ClassifierController(decisiontree, featurenames, ft);
		
		JFrame frame = new LayoutView();
		frame.add(CC, BorderLayout.CENTER);
		frame.setTitle("Find out Insurance Category");
		frame.setLocationRelativeTo(null);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setVisible(true);

	}

}
